package com.bs.entity;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * MedicineInfo entity. @author MyEclipse Persistence Tools
 */

public class MedicineInfo implements java.io.Serializable {

	// Fields

	private Long  medicineId;
	private MedicineCategory medicineCategory;
	private String medicineName;
	private String medicineCode;
	private String medicineFactory;
	private String medicineFactoryAddress;
	private String medicineDesc;
	private Double  medicinePrice;
	private Date buyTime;
	private Set<MedicineIn> medicineIns = new HashSet(0);
	private Set<MedicineOut> medicineOuts = new HashSet(0);
	private MedicineStorage medicineStorage;

	// Constructors

	/** default constructor */
	public MedicineInfo() {
	}

	/** full constructor */
	public MedicineInfo(MedicineCategory medicineCategory, String medicineName,
			String meidcineCode, String medicineFactory,
			String medicineFactoryAddress, String medicineDesc,
			Double medicinePrice, Date buyTime, Set medicineIns,
			Set medicineOuts, MedicineStorage medicineStorage) {
		this.medicineCategory = medicineCategory;
		this.medicineName = medicineName;
		this.medicineCode = meidcineCode;
		this.medicineFactory = medicineFactory;
		this.medicineFactoryAddress = medicineFactoryAddress;
		this.medicineDesc = medicineDesc;
		this.medicinePrice = medicinePrice;
		this.buyTime = buyTime;
		this.medicineIns = medicineIns;
		this.medicineOuts = medicineOuts;
		this.medicineStorage = medicineStorage;
	}

	// Property accessors

	
	public MedicineCategory getMedicineCategory() {
		return this.medicineCategory;
	}

	public Long getMedicineId() {
		return medicineId;
	}

	public void setMedicineId(Long medicineId) {
		this.medicineId = medicineId;
	}

	public void setMedicineCategory(MedicineCategory medicineCategory) {
		this.medicineCategory = medicineCategory;
	}

	public String getMedicineName() {
		return this.medicineName;
	}

	public void setMedicineName(String medicineName) {
		this.medicineName = medicineName;
	}

	
	public String getMedicineCode() {
		return medicineCode;
	}

	public void setMedicineCode(String medicineCode) {
		this.medicineCode = medicineCode;
	}

	public String getMedicineFactory() {
		return this.medicineFactory;
	}

	public void setMedicineFactory(String medicineFactory) {
		this.medicineFactory = medicineFactory;
	}

	public String getMedicineFactoryAddress() {
		return this.medicineFactoryAddress;
	}

	public void setMedicineFactoryAddress(String medicineFactoryAddress) {
		this.medicineFactoryAddress = medicineFactoryAddress;
	}

	public String getMedicineDesc() {
		return this.medicineDesc;
	}

	public void setMedicineDesc(String medicineDesc) {
		this.medicineDesc = medicineDesc;
	}

	
	public Double getMedicinePrice() {
		return medicinePrice;
	}

	public void setMedicinePrice(Double medicinePrice) {
		this.medicinePrice = medicinePrice;
	}

	public Date getBuyTime() {
		return this.buyTime;
	}

	public void setBuyTime(Date buyTime) {
		this.buyTime = buyTime;
	}

	
	public Set<MedicineIn> getMedicineIns() {
		return medicineIns;
	}

	public void setMedicineIns(Set<MedicineIn> medicineIns) {
		this.medicineIns = medicineIns;
	}

	public Set<MedicineOut> getMedicineOuts() {
		return medicineOuts;
	}

	public void setMedicineOuts(Set<MedicineOut> medicineOuts) {
		this.medicineOuts = medicineOuts;
	}

	public MedicineStorage getMedicineStorage() {
		return this.medicineStorage;
	}

	public void setMedicineStorage(MedicineStorage medicineStorage) {
		this.medicineStorage = medicineStorage;
	}

}